/*
 * 帮助文档 目录
 *
 * @Author:    1024创新实验室-主任：卓大
 * @Date:      2022-09-03 21:56:31
 * @Wechat:    zhuda1024
 * @Email:     lab1024@163.com
 * @Copyright  1024创新实验室 （ https://1024lab.net ），Since 2012
 */
import { postRequest, getRequest } from '/src/lib/axios';
export const helpDocCatalogApi = {
  //帮助文档目录-获取全部 @author zhuoda
  getAll: () => {
    return getRequest(`/api/HelpDoc/GetHelpDocCatalogList`);
  },

  //帮助文档目录-添加 @author zhuoda
  add: (param) => {
    return postRequest(`/api/HelpDoc/CreateHelpDocCatalog`, param);
  },

  //帮助文档目录-更新 @author zhuoda
  update: (param) => {
    return postRequest(`/api/HelpDoc/UpdateHelpDocCatalog`, param);
  },

  //帮助文档目录-删除 @author zhuoda
  delete: (helpDocCatalogId) => {
    return getRequest(`/api/HelpDoc/DeleteHelpDocCatalog?helpDocCatalogId=${helpDocCatalogId}`);
  },
};
